﻿<ss:AppView xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="DynamicChart.UI.DataSourceView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ss="clr-namespace:SmartSpace.UI.Silverlight;assembly=SmartSpace.UI.Silverlight"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Button Name="_ctlBtnCreate" Content="添加" Click="_ctlBtnCreate_Click" />
        </StackPanel>
        <sdk:DataGrid Name="_ctlGridDataSource" Grid.Row="1" AutoGenerateColumns="False">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn Header="名称" Binding="{Binding Path=Name}"/>
                <sdk:DataGridTextColumn Header="描述" Binding="{Binding Path=Caption}"/>
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
    </Grid>
</ss:AppView>
